package com.opennews.openplatform

class Bank {
    String id
    String name
    String shortName        // Likes CCB, CMB which will be used as image name on app side.
    Collection<BankCard> bankCards
    Date dateCreated
    Date lastUpdated

    static constraints = {
        name nullable: false, blank: false, maxSize: 50
        shortName nullable: false, blank: false, maxSize: 50
    }

    static mapping = {
        version false
    }
}